package com.mask.im.business.service;

import io.netty.channel.Channel;

import java.util.List;

/**
 * @author jian
 */
public interface ChannelService {

	void setUserIdBindChannel(Channel channel);

	void setIdBindChannel(String id,Channel channel);

	void setChannelBindUserId(Channel channel);

	void deleteChannelBindUserId(Channel channel);

	void deleteBindUserIdChannel();

	void deleteBindIdChannel(String id);

	void setUserIdAndIdBindChannel(String id ,Channel channel);

	void deleteBindUserIdAndIdChannel(String id);

	Channel getUserIdChannel(String userId);

	String getChannelUserId(Channel channel);

	List<Channel> getAllOnlineUser();
}
